package top.revery.task.dto;

import org.springframework.data.jpa.repository.JpaRepository;
import top.revery.api.entity.user.BaseUserInfo;

import java.util.List;


/**
 * @author denghao
 * @title
 * @package
 * @date 2019/12/12 15:57
 */

public interface UserInfoDto extends JpaRepository<BaseUserInfo, Long> {

    List<BaseUserInfo> findAll();

    BaseUserInfo findByTelephone(String telephone);

    BaseUserInfo findByName(String name);

    BaseUserInfo findByEmail(String email);

    BaseUserInfo findByTelephoneAndUserType(String mobile, Integer type);
}
